import http from "@/utils/http"

/**
 * 获取商品列表数据
 * @param {Object} param { page, limit, category1Id, category2Id} 
 * @returns Promise
 */
export const reqGoodsList = ({page, limit, ...data}) => {
    return http.get(`/goods/list/${page}/${limit}`, data)
}

/**
 * 获取商品详情
 * @param {*} goodsId 商品ID
 * @returns Promise
 */
export const reqGoodsInfo = (goodsId) => {
    return http.get(`/goods/${goodsId}`)
}